package com.ruixi.spring.scope;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Test {

    public static void main(String[] args) {
        ApplicationContext ac = new ClassPathXmlApplicationContext("conf/applicationContext.xml");
        Student s1 = ac.getBean("student", Student.class);
        Student s2 = ac.getBean("student", Student.class);
        System.out.println(s1);
        System.out.println(s2);
    }
}
